package com.example.mybatisplus.model.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;

import java.time.LocalTime;
import java.io.Serializable;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 *
 * </p>
 *
 * @author yfy
 * @since 2021-12-30
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value = "Hotel对象", description = "")
public class Hotel extends Model<Hotel> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    private String name;

    private String address;

    private String zipcode;

    private String city;

    private Float longitude;

    private Float latitude;

    private String url;

    private LocalTime checkIn;

    private LocalTime checkOut;

    private Integer numRoom;

    private Integer numFloor;
    @TableField("photo_1")
    private String photo1;
    @TableField("photo_2")
    private String photo2;
    @TableField("photo_3")
    private String photo3;
    @TableField("photo_4")
    private String photo4;
    @TableField("photo_5")
    private String photo5;


    private Integer stars;
    @TableField("u_id")
    private Long uId;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
